package com.ruoyi.used.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.used.mapper.UsedMemberMapper;
import com.ruoyi.used.domain.UsedMember;
import com.ruoyi.used.service.IUsedMemberService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会员等级Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-11
 */
@Service
public class UsedMemberServiceImpl implements IUsedMemberService 
{
    @Autowired
    private UsedMemberMapper usedMemberMapper;

    /**
     * 查询会员等级
     * 
     * @param meid 会员等级ID
     * @return 会员等级
     */
    @Override
    public UsedMember selectUsedMemberById(Long meid)
    {
        return usedMemberMapper.selectUsedMemberById(meid);
    }

    /**
     * 查询会员等级列表
     * 
     * @param usedMember 会员等级
     * @return 会员等级
     */
    @Override
    public List<UsedMember> selectUsedMemberList(UsedMember usedMember)
    {
        return usedMemberMapper.selectUsedMemberList(usedMember);
    }

    /**
     * 新增会员等级
     * 
     * @param usedMember 会员等级
     * @return 结果
     */
    @Override
    public int insertUsedMember(UsedMember usedMember)
    {
        return usedMemberMapper.insertUsedMember(usedMember);
    }

    /**
     * 修改会员等级
     * 
     * @param usedMember 会员等级
     * @return 结果
     */
    @Override
    public int updateUsedMember(UsedMember usedMember)
    {
        return usedMemberMapper.updateUsedMember(usedMember);
    }

    /**
     * 删除会员等级对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteUsedMemberByIds(String ids)
    {
        return usedMemberMapper.deleteUsedMemberByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除会员等级信息
     * 
     * @param meid 会员等级ID
     * @return 结果
     */
    @Override
    public int deleteUsedMemberById(Long meid)
    {
        return usedMemberMapper.deleteUsedMemberById(meid);
    }
}
